package com.xyc.mapper.impl;

import com.xyc.mapper.SongListMapper;
import com.xyc.pojo.Song;
import com.xyc.pojo.SongList;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;
import java.util.Map;

public class SongListMapperImpl extends SqlSessionDaoSupport implements SongListMapper {
    @Override
    public void addSongList(Map map) {
        getSqlSession().getMapper(SongListMapper.class).addSongList(map);
    }

    @Override
    public void delSongList(Map map) {
        getSqlSession().getMapper(SongListMapper.class).delSongList(map);
    }

    @Override
    public void updateSongList(Map map) {
        getSqlSession().getMapper(SongListMapper.class).updateSongList(map);
    }

    @Override
    public List<SongList> selectSongList() {
        return getSqlSession().getMapper(SongListMapper.class).selectSongList();
    }

    @Override
    public SongList selectSongListById(String id) {
        return getSqlSession().getMapper(SongListMapper.class).selectSongListById(id);
    }

    @Override
    public List<Song> selectLast(Map map) {
        return getSqlSession().getMapper(SongListMapper.class).selectLast(map);
    }

    @Override
    public int selectCount() {
        return getSqlSession().getMapper(SongListMapper.class).selectCount();
    }
}
